class_name EnemySlot
extends Node2D


@export var enabled: bool = true

var __occupant: BasicEnemy = null

func is_free() -> bool:
	return enabled and __occupant == null


func free_up():
	__occupant = null


func occupy(enemy: BasicEnemy):
	if enabled:
		__occupant = enemy


func is_occupied(enemy: BasicEnemy):
	return __occupant == enemy